#!/usr/bin/env node
console.log(process.pid);
const cp = require('child_process');
console.log(`I am father,PID:${process.pid}`);
const cat = cp.spawn('node',['03-child.js'],{detached:true,stdio:[0,1,2]});
//cat.stdout.pipe(process.stdout);
//cat.stderr.pipe(process.stderr);

setTimeout(()=>{
  console.log('father:bye!');
  process.exit();
},5000)
